<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>2.数组的filter方法</title>
  </head>
  <body>
    <script type="text/javascript" >
      let arr = [
        {id:'98767201',name:'晶晶',grade:100,gender:1},
        {id:'98767202',name:'天禹',grade:90,gender:1},
        {id:'98767203',name:'强哥',grade:20,gender:0},
        {id:'98767204',name:'小错',grade:59,gender:0}
      ]
      const result = arr.filter((item)=>{
        return !item.gender
      })
      console.log(result)
    </script>
  </body>
</html>